//
//  HTDefine.h
//  haitaoBuyers
//
//  Created by zhoupengfei on 14-8-21.
//  Copyright (c) 2014年 tiny. All rights reserved.
//

#ifndef haitaoBuyers_HTDefine_h
#define haitaoBuyers_HTDefine_h

#define KeyBoardDown() [[[UIApplication sharedApplication] keyWindow] endEditing:YES]
#define KScreenWidth  [UIScreen mainScreen].bounds.size.width // 屏幕宽度
#define KScreenHeight  [UIScreen mainScreen].bounds.size.height  //屏幕高度
#define iOS8   [[[UIDevice currentDevice]systemVersion]floatValue] >=8.0 // iOS 7.0
#define iOS7   [[[UIDevice currentDevice]systemVersion]floatValue] >=7.0 // iOS 7.0

#define rgba(r,g,b,a) [UIColor colorWithRed:(r/255.0) green:(g/255.0) blue:(b/255.0) alpha:a]
#define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height
//获取当前版本号
#define kCurrentVersion [NSString stringWithFormat:@"%@",[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]]
#define kBackgroundColor rgba(246,245,241,1)
#define kLineColor1 rgba(230,229,227,1)
#define kLineColor2 rgba(238,238,238,1)
#define kLineColor3 rgba(224,223,222,1)

#define kWhiteNavTitleColor rgba(88,88,88,1)

#define KStandUserDefaults [NSUserDefaults standardUserDefaults]
/**
 *  登录返回的 User 对象
 */
#define KUserDefaultKey_PersonalDetail @"KUserDefaultKey_PersonalDetail"

/**
 *  用户选择的地址所对应的地址ID
 */
#define KUserDefaultKey_PersonalCityID @"KUserDefaultKey_PersonalCityID"
#define KUserDefaultKey_PersonalCityName @"KUserDefaultKey_PersonalCityName"

#endif

